﻿using System;

namespace CoreShop.Model
{
    /// <summary>
    /// 打印详情明细表
    /// </summary>
    public partial class corecmsprinttaskdetail
    {
        /// <summary>
        /// 序列
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public Int64 id { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "batchId", IsPrimaryKey = true)]
        public Int64 batchId { get; set; }

        /// <summary>
        /// 订单详情Id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "detailId", IsNullable = true)]
        public Int64 detailId { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "quantity", IsNullable = true)]
        public Decimal quantity { get; set; }


        /// <summary>
        /// 原价
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "price")]
        public Decimal price { get; set; }

        /// <summary>
        /// 实价
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "realPrice")]
        public Decimal realPrice { get; set; }


        /// <summary>
        /// 折扣
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "discount")]
        public Decimal discount { get; set; }

        /// <summary>
        /// 原金额
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "amount")]
        public Decimal amount { get; set; }

        /// <summary>
        /// 实收金额
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "realAmount")]
        public Decimal realAmount { get; set; }

        /// <summary>
        /// 做法金额
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "taskAmount")]
        public Decimal taskAmount { get; set; }

        /// <summary>
        /// 加料金额
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "feedAmount")]
        public Decimal feedAmount { get; set; }


        /// <summary>
        /// 小计
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "allAmount")]
        public Decimal allAmount { get; set; }

        /// <summary>
        /// 收银打印方案id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "printSchemeId", IsNullable = true)]
        public int printSchemeId { get; set; }

        /// <summary>
        ///  商品Id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "foodId", IsNullable = true)]
        public Int64 foodId { get; set; }

        /// <summary>
        ///  规格Id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "foodSpecId", IsNullable = true)]
        public Int64 foodSpecId { get; set; }


        /// <summary>
        /// 商品分类id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "foodTypeId", IsNullable = true)]
        public Int64 foodTypeId { get; set; }

        /// <summary>
        ///  商品编码
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "number", IsNullable = true)]
        public String number { get; set; }

        /// <summary>
        ///  商品名称
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "name", IsNullable = true)]
        public String name { get; set; }

        /// <summary>
        ///  规格名称
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "specName", IsNullable = true)]
        public String specName { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "unitName", IsNullable = false)]
        public String unitName { get; set; }

        /// <summary>
        ///  做法名称
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "taskTitle", IsNullable = true)]
        public String taskTitle { get; set; }

        /// <summary>
        ///  加料名称
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "feedTitle", IsNullable = true)]
        public String feedTitle { get; set; }

        /// <summary>
        ///  打包标记
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "parcel", IsNullable = true)]
        public String parcel { get; set; }

        /// <summary>
        ///  餐套主菜Id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "foodPackId", IsNullable = true)]
        public Int64 foodPackId { get; set; }

        /// <summary>
        /// 套餐名称
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "foodPackName", IsNullable = true)]
        public String foodPackName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "createTime", IsNullable = true)]
        public DateTime createTime { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "updataTime", IsNullable = true)]
        public DateTime? updataTime { get; set; }
        
        /// <summary>
        /// 整单备注
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "remark", IsNullable = true)]
        public String remark { get; set; }

        /// <summary>
        /// 桌台编号
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "deskName", IsNullable = true)]
        public String deskName { get; set; }

        /// <summary>
        /// 订单编号
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "orderNo", IsNullable = true)]
        public String orderNo { get; set; }

        /// <summary>
        /// 取单编号
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "orderNumber", IsNullable = true)]
        public String orderNumber { get; set; }

        /// <summary>
        /// 就餐人数
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "person", IsNullable = true)]
        public Int32? person { get; set; }

        /// <summary>
        /// 打印状态(0待打印,1打印成功,2打印失败,3补打)
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "printStatus", IsNullable = true)]
        public Int32 printStatus { get; set; }

        /// <summary>
        /// 打印类型（不同的类型只能选择相对应的打印格式）
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "billtypeId", IsNullable = true)]
        public Int32 billtypeId { get; set; }

        /// <summary>
        ///  下单人
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "billerName", IsNullable = true)]
        public String billerName { get; set; }

        /// <summary>
        /// 收银打印模板id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "templateId", IsNullable = true)]
        public Int32 templateId { get; set; }

        /// <summary>
        ///  明细备注
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "detailRemark", IsNullable = true)]
        public String detailRemark { get; set; }

        /// <summary>
        ///  叫起标记
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "callType", IsNullable = true)]
        public String callType { get; set; }

        /// <summary>
        ///  小票标题
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "billTitle", IsNullable = true)]
        public String billTitle { get; set; }
    }
}
